<div class="asistencias index">
	<h2><?php __('Asistencias');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('momento_id');?></th>
			<th><?php echo $this->Paginator->sort('municipio_id');?></th>
			<th><?php echo $this->Paginator->sort('entidade_id');?></th>
			<th><?php echo $this->Paginator->sort('asistentes');?></th>
			<th class="actions"><?php __('');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($asistencias as $asistencia):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $asistencia['Momento']['nombre'];?></td>
		<td><?php echo $asistencia['Municipio']['nombre'];?></td>
		<td><?php echo $asistencia['Entidade']['nombre'];?>	</td>
		<td><?php echo $asistencia['Asistencia']['asistentes']; ?>&nbsp;</td>
		
		<td class="actions">
			<?php echo $this->Html->link(__('Ver', true), array('action' => 'view', $asistencia['Asistencia']['id'])); ?>
			<?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $asistencia['Asistencia']['id'])); ?>
			<?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $asistencia['Asistencia']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $asistencia['Asistencia']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
		<p>
		<?php echo $this->Paginator->counter(array('format' => __('P&aacute;gina %page% de %pages%, mostrando %current% regristros de %count% en total,
		 														   empieza con el registro %start%, termina en %end%', true)));?>
	</p>
	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 	 |
		<?php echo $this->Paginator->next(__('Siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Asistencia', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Momentos', true), array('controller' => 'momentos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Momento', true), array('controller' => 'momentos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Municipios', true), array('controller' => 'municipios', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Municipio', true), array('controller' => 'municipios', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Entidades', true), array('controller' => 'entidades', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Entidade', true), array('controller' => 'entidades', 'action' => 'add')); ?> </li>
	</ul>
</div>